import request from '../utils/request.js'
//个人中心
export function userCenter(){
    return request({
        url:'api/v1/userCenter/index',
        method:'GET'
    })
}
//获取用户资料
export function getUserInfo(){
    return request({
        url:'api/v1/xcx/userInfo',
        method:'GET'
    })
}
//获取村镇列表
export function getBlockByPid(){
    return request({
        url:'api/v1/xcx/getBlockByPid',
        method:'GET'
    })
}
//修改用户资料
export function setMobile(data){
    return request({
        url:'api/v1/xcx/setUserInfo',
        data:data,
        method:'POST'
    })
}
//领取礼包
export function getVipLog(data){
    return request({
        url:'api/v1/userCenter/getVipLog',
        data:data,
        method:'GET'
    })
}
//获取验证码
export function sendVerifyCode(data){
    return request({
        url:'api/v1/userCenter/sendVerifyCode',
        data:data,
        method:'POST'
    })
}
//登录
export function login(data){
    return request({
        url:'api/v1/weapp/authorizations',
        data:data,
        method:'POST'
    })
}
